//
// Created by zhangzhiwen on 25-5-23.
//

#ifndef MOTOR_H
#define MOTOR_H

#include "stm32f1xx_hal.h"
#include "main.h"

#define STEP_D 8000
#define STEP0 0
#define STEP1 14000
#define STEP2 (STEP1 + STEP_D)
#define STEP3 (STEP2 + STEP_D)
#define STEP4 (STEP3 + STEP_D)


void motor_init();
void motor_set_speed(int32_t speed1, int32_t speed2);
void motor_move(uint16_t step);
void motor_reinit();

#endif //MOTOR_H
